package org.hoyi.web.ctrls;

import org.hoyi.web.events.OnClickListener;

/**
 * Author:ellen Email:ellen@kuaifish.com CreateDate:2015-05-20
 * ModifyDate:2015-06-20 hoyi entities @ hoyi.org 使用请在项目关于内标注hoyi版权，
 * hoyi版权归hoyi.org所有
 */
public class Button extends IHoyiCtrl {
	public Button(String ctrid) {
		super(ctrid);
	}

	public Button(String ctrid, IHoyiCtrl parent) {
		super(ctrid, parent);
	}

	public void Init() {
		this.OnClick = new OnClickListener() {
			public void Click() {
				super.Click();
				System.out.println();
			}
		};
	}

	public String Render() {
		super.Render();
		this.rendedHTMLContent = ("<input type=\"button\" style=\"" + this.Style + "\" " + "class=\"" + this.CSSClass
				+ "\">" + this.InnerText + "</button>");
		return this.rendedHTMLContent;
	}
}
